import request from '@/utils/request'

//查询分区标题全部
export function listProdPartitionAll() {
  return request({
    url: '/jewelry/prodpartition/list/all',
    method: 'get',
  })
}

// 查询产品分区管理列表
export function listProdpartition(query) {
  return request({
    url: '/jewelry/prodpartition/list',
    method: 'get',
    params: query
  })
}

// 查询产品分区管理详细
export function getProdpartition(id) {
  return request({
    url: '/jewelry/prodpartition/' + id,
    method: 'get'
  })
}

// 新增产品分区管理
export function addProdpartition(data) {
  return request({
    url: '/jewelry/prodpartition',
    method: 'post',
    data: data
  })
}

// 修改产品分区管理
export function updateProdpartition(data) {
  return request({
    url: '/jewelry/prodpartition',
    method: 'put',
    data: data
  })
}

// 删除产品分区管理
export function delProdpartition(id) {
  return request({
    url: '/jewelry/prodpartition/' + id,
    method: 'delete'
  })
}
